import http from '../http-common';

const teacherService = {
    queryTeachers: (queryParam) => {
        return http.get("/teachers", { params: queryParam })
    },
    delete: (id) => {
        return http.delete(`/teachers/${id}`);
    },
    create: (values) => {
        return http.post("/teachers", values);
    },
    update: (values) => {
        return http.put(`/teachers/${values.id}`, values);
    }
}

export default teacherService